#include "boom.h"

Boom::Boom()
{

        pix.load(":/tpw/bomb-1.png");
}

void Boom::updatebom()
{
    if(bomfree)//如果爆炸效果空闲return
        return;
    recorder++;
    if(recorder<5)//爆炸持续5*42ms
        return;
    recorder=0;
    bomfree=true;
}
